package com.lam.common.constant;

/**
 * 通用常量信息
 * 
 * @author lam
 */
public class CommonConstant {
	
	public final static String X_ACCESS_TOKEN = "Authorization";

	/** 超级管理员账号名称 */
	public static final String ADMIN_USER_NAME = "admin";
	/** 超级管理员角色标识 */
	public static final String ADMIN_ROLE_KEY = "admin";

	/** 所有权限标识 */
	public static final String ALL_PERMISSION = "*:*:*";
	/** 角色标识分隔符 */
	public static final String ROLE_DELIMETER = ",";
	/** 权限标识分隔符 */
	public static final String PERMISSION_DELIMETER = ",";

	/** UTF-8 字符集 */
	public static final String UTF8 = "UTF-8";

	/** http请求 */
	public static final String HTTP = "http://";

	/** https请求 */
	public static final String HTTPS = "https://";

	/** 防重提交 redis key */
	public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

	/** 资源映射路径 前缀 */
	public static final String RESOURCE_PREFIX = "/profile";
	
	/** 历史表后缀 */
	public static final String TABLE_SUFFIX_HIS = "his";
	
    /** 用户状态，1正常  */
    public static final Integer USER_NOMAL = 1;
    /** 用户状态，2禁用 */
    public static final Integer USER_FORBID = 2;

    /** 状态, 1正常(可用) */
	public static final String STATUS_NORMAL = "1";
	/** 状态, 0停用(不可用)*/
	public static final String STATUS_DISABLE = "0";
    /** 状态, 1正常(可用) */
    public static final Integer STATUS_NORMAL_1 = 1;
    /** 状态, 0停用(不可用) */
    public static final Integer STATUS_DISABLE_0 = 0;
    
    /** 删除状态, 1正常 */
    public static final Integer DEL_STATUS_NORMAL = 1;
    /** 删除状态, 0已删除 */
    public static final Integer DEL_STATUS_DELETED = 0;

    /** Y是 */
    public static final String YES = "Y";
    /** N否 */
    public static final String NO = "N";
    /** 1是 */
    public static final String YES_1 = "1";
    /** 0否 */
    public static final String NO_0 = "0";
    /** 1是 */
    public static final int YES1 = 1;
    /** 0否 */
    public static final int NO0 = 0;
    
    /** 顶层父ID */
    public static final String TOP_PARENT_ID = "0";
    
    /** 注册登录方式, 1-手机号 */
	public static final int REG_TYPE_PHONE = 1;
	/** 注册登录方式, 2-邮箱 */
	public static final int REG_TYPE_EMAIL = 2;
	/** 注册登录方式, 3-账号密码 */
	public static final int REG_TYPE_PASSWD = 3;
	
	/** 文件上传方式 1.上传到本地 */
	public static final int UPLOAD_TYPE_LOCAL = 1;
	/** 文件上传方式 2.上传到七牛云 */
	public static final int UPLOAD_TYPE_QINIU = 2;
    
}
